<!DOCTYPE html>
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
  <meta name="description" content="tong.li&#39;s blog">
  <meta name="keyword" content="彤哥哥博客，95后技术爱好者,现就职于同程旅行/同程艺龙上海分公司，专注于互联网技术分享的平台。">
  
    <link rel="shortcut icon" href="/css/images/icon.png">
  
  <title>
    
      彤哥哥的博客
    
  </title>
  <link href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <link href="https://cdn.staticfile.org/nprogress/0.2.0/nprogress.min.css" rel="stylesheet">
  <link href="https://cdn.staticfile.org/highlight.js/9.12.0/styles/tomorrow-night.min.css" rel="stylesheet">
  
<link rel="stylesheet" href="/css/style.css">

  
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/geopattern/1.2.3/js/geopattern.min.js"></script>
  <script src="https://cdn.staticfile.org/nprogress/0.2.0/nprogress.min.js"></script>
  
    
<script src="/js/qrious.js"></script>

  
  
  
  
    <!-- MathJax support START -->
    <script type="text/x-mathjax-config">
      MathJax.Hub.Config({
        tex2jax: {
          inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
          processEscapes: true,
          skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
        }
      });
    </script>

    <script type="text/x-mathjax-config">
      MathJax.Hub.Queue(function() {
        var all = MathJax.Hub.getAllJax(), i;
        for (i=0; i < all.length; i += 1) {
          all[i].SourceElement().parentNode.className += ' has-jax';
        }
      });
    </script>
    <script type="text/javascript" src="https://cdn.staticfile.org/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
    <!-- MathJax support END -->
  


  
  
    
<script src="/js/local-search.js"></script>


<meta name="generator" content="Hexo 5.4.2"></head>
<div class="wechat-share">
  <img src="/css/images/logo.png" />
</div>
  <body>
    <header class="header fixed-header">
  <div class="header-container">
    <a class="home-link" href="/">
      <div class="logo"></div>
      <span>彤哥哥的博客</span>
    </a>
    <ul class="right-list">
      
        <li class="list-item">
          
            <a href="/" class="item-link active">主页</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/series/" class="item-link">分类</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/tags/" class="item-link">标签</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/archives/" class="item-link">归档</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/project/" class="item-link">项目</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/about/" class="item-link">关于</a>
          
        </li>
      
      
        <li class="menu-item menu-item-search right-list">
    <a role="button" class="popup-trigger">
        <i class="fa fa-search fa-fw"></i>
    </a>
</li>
      
    </ul>
    <div class="menu">
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </div>
    <div class="menu-mask">
      <ul class="menu-list">
        
          <li class="menu-item">
            
              <a href="/" class="menu-link mobile-active">主页</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/series/" class="menu-link">分类</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/tags/" class="menu-link">标签</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/archives/" class="menu-link">归档</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/project/" class="menu-link">项目</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/about/" class="menu-link">关于</a>
            
          </li>
        
      </ul>
    </div>
    
      <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
            <span class="search-icon">
                <i class="fa fa-search"></i>
            </span>
            <div class="search-input-container">
                <input autocomplete="off" autocapitalize="off"
                    placeholder="Please enter your keyword(s) to search." spellcheck="false"
                    type="search" class="search-input">
            </div>
            <span class="popup-btn-close">
                <i class="fa fa-times-circle"></i>
            </span>
        </div>
        <div id="search-result">
            <div id="no-result">
                <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
            </div>
        </div>
    </div>
</div>
    
  </div>
</header>

    <main class="app-body">
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/06/10/Docker%E5%AE%89%E8%A3%85%E5%88%86%E5%B8%83%E5%BC%8F%E6%B6%88%E6%81%AF%E4%B8%AD%E9%97%B4%E4%BB%B6-RabbitMQ/">Docker安装分布式消息中间件-RabbitMQ</a>
      </h2>
      <p class="article-date">June 10, 2018</p>
      
        
  <a href="/tags#Docker" >
    <span class="tag-code">Docker</span>
  </a>

      
      <div class="article-summary">
        
          RabbitMQ是流行的开源消息队列系统，采用天生抗并发的erlang语言开发。RabbitMQ是AMQP（高级消息队列协议）的标准实现。接下来，我们通过Docker的方式安装RabbitMQ。
查看RabbitMQ版本进入docker hub官方镜像仓库或阿里docker镜像库,搜索rab ...
        
      </div>
      <a class="more" href="/2018/06/10/Docker%E5%AE%89%E8%A3%85%E5%88%86%E5%B8%83%E5%BC%8F%E6%B6%88%E6%81%AF%E4%B8%AD%E9%97%B4%E4%BB%B6-RabbitMQ/">阅读更多</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/06/10/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91%E7%BA%BF%E7%A8%8B%E6%B1%A0%E5%BA%94%E7%94%A8%E4%B9%8BExecutors%E7%BA%BF%E7%A8%8B%E6%B1%A0%E9%9D%99%E6%80%81%E5%B7%A5%E5%8E%82/">【Java并发编程实战】线程池应用之Executors线程池静态工厂</a>
      </h2>
      <p class="article-date">June 10, 2018</p>
      
        
  <a href="/tags#JVM及并发编程" >
    <span class="tag-code">JVM及并发编程</span>
  </a>

      
      <div class="article-summary">
        
          今天我们来认识一下，线程池的静态工厂Executors类，平时写测试代码的时候可用一用，生产代码尽量少用。为什么说生产上尽量少用呢？这是有原因的，请耐心听彤哥讲解。
阿里的代码规约不建议使用这样的工厂类，而建议使用手动创建并管理ThreadPoolExecutor，在阿里巴巴Java开发手册 ...
        
      </div>
      <a class="more" href="/2018/06/10/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91%E7%BA%BF%E7%A8%8B%E6%B1%A0%E5%BA%94%E7%94%A8%E4%B9%8BExecutors%E7%BA%BF%E7%A8%8B%E6%B1%A0%E9%9D%99%E6%80%81%E5%B7%A5%E5%8E%82/">阅读更多</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/06/09/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91-%E6%B7%B1%E5%85%A5ThreadPoolExecutor%E5%B7%A5%E4%BD%9C%E6%9C%BA%E5%88%B6/">【Java并发编程实战】-深入ThreadPoolExecutor工作机制</a>
      </h2>
      <p class="article-date">June 9, 2018</p>
      
        
  <a href="/tags#JVM及并发编程" >
    <span class="tag-code">JVM及并发编程</span>
  </a>

      
      <div class="article-summary">
        
          为了高效的管理线程，JDK1.5版本的Doug Lea大神为我们设计了大名鼎鼎的ThreadPoolExecutor。
作为Executor框架中最核心的类-ThreadPoolExecutor，我们可以认为它是一个调度工具，为了高效执行或调度任务，我们非常有必要对该类的工作原理以及内部机制 ...
        
      </div>
      <a class="more" href="/2018/06/09/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91-%E6%B7%B1%E5%85%A5ThreadPoolExecutor%E5%B7%A5%E4%BD%9C%E6%9C%BA%E5%88%B6/">阅读更多</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/06/08/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91-Java%E7%BA%BF%E7%A8%8B%E6%B1%A0%E5%9F%BA%E7%A1%80/">【Java并发编程实战】-Java线程池基础</a>
      </h2>
      <p class="article-date">June 8, 2018</p>
      
        
  <a href="/tags#JVM及并发编程" >
    <span class="tag-code">JVM及并发编程</span>
  </a>

      
      <div class="article-summary">
        
          线程池是限制系统中执行线程的数量，并能够根据一定的策略回收线程并重复使用。JDK1.5之后加入了java.util.concurrent包，我们日常称之为J.U.C并发包，这个包对我们日常解决并发提供了非常大的帮助。
根据系统的环境情况，可以自动或手动设置线程数量，达到运行的最佳效果；少了浪 ...
        
      </div>
      <a class="more" href="/2018/06/08/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91-Java%E7%BA%BF%E7%A8%8B%E6%B1%A0%E5%9F%BA%E7%A1%80/">阅读更多</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/06/03/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91-%E6%B5%85%E8%B0%88volatile%E5%86%85%E5%AD%98%E5%8F%AF%E8%A7%81%E6%80%A7/">【Java并发编程实战】-浅谈volatile内存可见性</a>
      </h2>
      <p class="article-date">June 3, 2018</p>
      
        
  <a href="/tags#JVM及并发编程" >
    <span class="tag-code">JVM及并发编程</span>
  </a>

      
      <div class="article-summary">
        
          volatile这个关键字大家都听过，看过许多源码也用过，这个关键字备受争议，很多人基于表面理解而导致在实际开发过生中大肆误用，暴露出各式各样的问题，让人摸不着头脑，今天我们来好好理解一下volatile。

百度百科:volatile是一个类型修饰符.volatile的作用是作为指令关键字 ...
        
      </div>
      <a class="more" href="/2018/06/03/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91-%E6%B5%85%E8%B0%88volatile%E5%86%85%E5%AD%98%E5%8F%AF%E8%A7%81%E6%80%A7/">阅读更多</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/06/01/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91-Java%E5%86%85%E5%AD%98%E6%A8%A1%E5%9E%8B/">【Java并发编程实战】-Java内存模型</a>
      </h2>
      <p class="article-date">June 1, 2018</p>
      
        
  <a href="/tags#JVM及并发编程" >
    <span class="tag-code">JVM及并发编程</span>
  </a>

      
      <div class="article-summary">
        
          硬件的效率与一致性计算机内部运算流程
计算机执行若干个运算任务，所有的计算任务不可能仅仅靠处理器“计算”来完成，计算器存储设备与处理器的运算速度有几个数量级的差距；
至少要与内存进行交互，如读取运算数据、存储运算结果，不能仅仅靠CPU寄存器来完成
随着计算机硬件的快速发展，任何设备的读写速度 ...
        
      </div>
      <a class="more" href="/2018/06/01/%E3%80%90Java%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E5%AE%9E%E6%88%98%E3%80%91-Java%E5%86%85%E5%AD%98%E6%A8%A1%E5%9E%8B/">阅读更多</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/05/24/%E9%A1%B9%E7%9B%AE%E5%9B%A2%E9%98%9F%E5%8D%8F%E4%BD%9C%E6%B5%81%E7%A8%8B/">项目团队协作流程</a>
      </h2>
      <p class="article-date">May 24, 2018</p>
      
        
  <a href="/tags#Team Building" >
    <span class="tag-code">Team Building</span>
  </a>

      
      <div class="article-summary">
        
          在公司IT部门里,各个团队(产品设计团队-UI/UE设计师-前端工程师-移动端工程师-后端工程师-测试工程师-运维工程师)互相协作,共同达到项目上线的目的.如果一个公司的IT部门人员管理以及项目开发流程不太完善,就会导致一些问题,比如扯皮无界和沟通低效等问题,这些严重影响到工作效率,打破了项 ...
        
      </div>
      <a class="more" href="/2018/05/24/%E9%A1%B9%E7%9B%AE%E5%9B%A2%E9%98%9F%E5%8D%8F%E4%BD%9C%E6%B5%81%E7%A8%8B/">阅读更多</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/05/24/Spring%20Cloud-Zuul%E6%A0%B8%E5%BF%83%E8%BF%87%E6%BB%A4%E5%99%A8%E5%8F%8A%E5%BC%82%E5%B8%B8%E5%A4%84%E7%90%86/">Spring Cloud-Zuul核心过滤器及异常处理</a>
      </h2>
      <p class="article-date">May 24, 2018</p>
      
        
  <a href="/tags#Spring Cloud" >
    <span class="tag-code">Spring Cloud</span>
  </a>

      
      <div class="article-summary">
        
          百家技术,谈笑古今.今天我们不讲三国,我们讲一讲微服务网关中的一些细节:Zuul过滤器.  
Zuul过滤器Spring Cloud中的Zuul为我们提供了统一对外,路由转发和过滤拦截的强大功能.在Spring Cloud Zuul中实现的过滤器必须包含4个基本特征:过滤类型,执行顺序,执行 ...
        
      </div>
      <a class="more" href="/2018/05/24/Spring%20Cloud-Zuul%E6%A0%B8%E5%BF%83%E8%BF%87%E6%BB%A4%E5%99%A8%E5%8F%8A%E5%BC%82%E5%B8%B8%E5%A4%84%E7%90%86/">阅读更多</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/05/22/Linux%E5%9F%BA%E7%A1%80-%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E4%B9%8B%E4%B8%89%E5%89%91%E5%AE%A2/">Linux基础-正则表达式之三剑客</a>
      </h2>
      <p class="article-date">May 22, 2018</p>
      
        
  <a href="/tags#Linux" >
    <span class="tag-code">Linux</span>
  </a>

      
      <div class="article-summary">
        
          Linux的世界里一切皆文件,对Linux的操作就是对文件的处理.被业界称为”三剑客”的awk,sed,grep就能够帮助我们更方便更高效的处理文件.“三剑客”中grep擅长查找功能,sed擅长取行和替换,awk擅长取列.“三剑客”就是普通的Linux命令,而正则表达式好比一个模板,两者结合 ...
        
      </div>
      <a class="more" href="/2018/05/22/Linux%E5%9F%BA%E7%A1%80-%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E4%B9%8B%E4%B8%89%E5%89%91%E5%AE%A2/">阅读更多</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/2018/05/22/Linux%E5%9F%BA%E7%A1%80-wget%E4%B8%8Ecurl%E5%91%BD%E4%BB%A4/">Linux基础-wget与curl命令</a>
      </h2>
      <p class="article-date">May 22, 2018</p>
      
        
  <a href="/tags#Linux" >
    <span class="tag-code">Linux</span>
  </a>

      
      <div class="article-summary">
        
          Linux系统下的下载工具wget 是一个从网络上自动下载文件的自由工具,支持通过 HTTP,HTTPS,FTP 三个最常见的 TCP/IP协议 下载,并可以使用 HTTP 代理.”wget” 这个名称来源于 “World Wide Web” 与 “get” 的结合.所谓自动下载,是指 wg ...
        
      </div>
      <a class="more" href="/2018/05/22/Linux%E5%9F%BA%E7%A1%80-wget%E4%B8%8Ecurl%E5%91%BD%E4%BB%A4/">阅读更多</a>
    </article>
  

  
    <div class="guide-pager">
  
    <a href="/page/6/"><span class="page-arrow">← </span>Prev</a>
  
  
    <a href="/page/8/">Next<span class="page-arrow"> →</span></a>
  
</div>
  
</main>


    <div class="scroll-top">
  <span class="arrow-icon"></span>
</div>
    <footer class="app-footer">
  <p class="copyright">
    &copy; 2024 | Proudly powered by <a href="https://hexo.io" target="_blank">Hexo</a>
    <br>
    Theme by <a target="_blank" rel="noopener" href="https://github.com/ltyeamin">tong.li</a>
  </p>
</footer>

<script>
  function async(u, c) {
    var d = document, t = 'script',
      o = d.createElement(t),
      s = d.getElementsByTagName(t)[0];
    o.src = u;
    if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
    s.parentNode.insertBefore(o, s);
  }
</script>
<script>
  async("https://cdn.staticfile.org/fastclick/1.0.6/fastclick.min.js", function(){
    FastClick.attach(document.body);
  })
</script>

<script>
  var hasLine = 'true';
  async("https://cdn.staticfile.org/highlight.js/9.12.0/highlight.min.js", function(){
    $('figure pre').each(function(i, block) {
      var figure = $(this).parents('figure');
      if (hasLine === 'false') {
        figure.find('.gutter').hide();
      }
      hljs.configure({useBR: true});
      var lang = figure.attr('class').split(' ')[1] || 'code';
      var codeHtml = $(this).html();
      var codeTag = document.createElement('code');
      codeTag.className = lang;
      codeTag.innerHTML = codeHtml;
      $(this).attr('class', '').empty().html(codeTag);
      figure.attr('data-lang', lang.toUpperCase());
      hljs.highlightBlock(block);
    });
  })
</script>
<!-- Baidu Tongji -->



<script src='https://cdn.staticfile.org/mermaid/8.11.2/mermaid.min.js'></script>



<script src="/js/script.js"></script>


  </body>
</html>